/*
 * ksAtomBlockReader.h
 *
 *  Created on: Aug 3, 2011
 *      Author: wang
 */

#ifndef KSATOMBLOCKReader_H_
#define KSATOMBLOCKReader_H_
#include "../ksAtomBlock.h"

class ksAtomBlockReader: public ksAtomBlock, public ksBlockReader
{
public:
    ksAtomBlockReader();
    virtual ~ksAtomBlockReader();
public:
    void loadHeader(unsigned char *data, unsigned int length);
    void load(std::ifstream& input);
    void extract(const char* path);
protected:
    unsigned char* _data;
public:
    virtual ksBlockReader* reader()
    {
        return this;
    }

};

#endif /* KSATOMBLOCK_H_ */
